const {defineConfig} = require('@vue/cli-service');
const {VantResolver} = require('unplugin-vue-components/resolvers');
const ComponentsPlugin = require('unplugin-vue-components/webpack');

module.exports = defineConfig({
  transpileDependencies: true,
  // 配置用户前台项目的IP和端口号
  "devServer": {
    "host": "localhost",
    "port": 7725
  },

  // 配置Vant插件: 它可以自动引入组件，并按需引入组件的样式
  configureWebpack: {
    plugins: [
      ComponentsPlugin({
        resolvers: [VantResolver()],
      }),
    ],
  },
});